% Calculate standard errors of Poisson arrival rate.
% based on standard deviation (1/lambda) and number of transitions (D)
% 
function [SE,CILO,CIHI]=standarderror(lamhat,D)
SE=lamhat./sqrt(D);
CILO=lamhat.*(1-(1.96./sqrt(D)));
CIHI=lamhat.*(1+(1.96./sqrt(D)));